<template>
  <div class="dashboard-container">
    <component :is="currentRole" />
    <resetPassword :show-modal="pwdForce" />
  </div>
</template>

<script>
import { mapGetters } from 'vuex';
import adminDashboard from './admin';
import editorDashboard from './editor';
import resetPassword from '@/components/admin/reset-password';

export default {
  name: 'Dashboard',
  components: { adminDashboard, editorDashboard, resetPassword },
  data() {
    return {
      currentRole: 'adminDashboard'
    };
  },
  computed: {
    ...mapGetters([
      'accessList'
    ]),
    ...mapGetters([
      'pwdForce'
    ])
  },
  created() {
    // if (!this.accessList.includes('api:insurance:dashboard:summary')) {
    // this.currentRole = 'editorDashboard';
    // }
  },
  mounted() {
  }
};
</script>
